<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">

<head th:include="common/head::head"></head>

<body>
<div th:include="common/nav::nav" class="tabs"></div>

<div class="content">
    <table>
        <tr>
            <td>disk usage</td>
            <td th:text="${diskUsage}"></td>
        </tr>
        <tr>
            <td>rtsp live addr (client)</td>
            <td>rtsp://{host}/{streamId}</td>
        </tr>
        <tr>
            <td>hls live addr (client | h5)</td>
            <td>http://{host}/m3u8/{streamId}/{current working dir}/out.m3u8</td>
        </tr>
        <tr>
            <td>record http replay addr (client | h5)</td>
            <td>
                http://{host}/m3u8/{job.streamId}/record/{job.id}/index.m3u8<br>
            </td>
        </tr>
    </table>
</div>

<div class="content">

    <table>
        <tr>
            <td>
                <form th:action="@{/config/ts_expire}" method="post">
                    <input type="text" name="ts_expire" required="required" th:value="${ts_expire}"
                           placeholder="ts_expire">
                    <button type="submit">set</button>
                </form>
            </td>
            <td>ts expire time (ms)</td>
        </tr>
        <tr>
            <td>
                <form th:action="@{/config/record_max_ms}" method="post">
                    <input type="text" name="record_max_ms" required="required" th:value="${record_max_ms}"
                           placeholder="record_max_ms">
                    <button type="submit">set</button>
                </form>
            </td>
            <td>record max time (ms)</td>
        </tr>
        <tr>
            <td>
                <form th:action="@{/config/record_min_ms}" method="post">
                    <input type="text" name="record_min_ms" required="required" th:value="${record_min_ms}"
                           placeholder="record_min_ms">
                    <button type="submit">set</button>
                </form>
            </td>
            <td>record min time (ms)</td>
        </tr>
    </table>

</div>

</body>

</html>